public class Task2 {
    private String s1;
    private String s2;

    public static String longerString(String s1, String s2){
        if (s1.length() >= s2.length()){
            return s1;
        }
        else {
            return s2;
        }
    }
    public static String shorterString(String s1, String s2){
        if (s1.length() >= s2.length()){
            return s2;
        }
        else {
            return s1;
        }
    }
}
